package com.kksoft.readcm.a;

import android.content.SharedPreferences;
import android.content.SharedPreferences.Editor;
import android.database.Cursor;
import android.database.SQLException;
import android.os.AsyncTask;
import com.kksoft.readcm.activity.App;
import java.util.concurrent.ConcurrentHashMap;

final class b extends AsyncTask
{
	private ah a;
	 b(ah ah1)
	    {
	        this(ah1, (byte)0);
	    }
	 private b(ah ah1, byte byte0)
	    {
		 super();
	        a = ah1;
	    }

  private void a()
  {
    long l1 = System.currentTimeMillis();
    long l2 = App.getSharedPreferences().getLong("faviconFailedHostReset", 0L);
    if ((l2 == 0L) || (l1 - l2 > 2419200000L))
    {
      this.a.a();
      boolean bool = App.getSharedPreferences().edit().putLong("faviconFailedHostReset", l1).commit();
    }
    else
    {try
    	{
    	Cursor cursor = a.e.g();
    	while (cursor.moveToNext())
    	{
    		//ConcurrentHashMap localConcurrentHashMap = ah.a(this.a);
            int i = cursor.getColumnIndex("host");
            String str = cursor.getString(i);
            Boolean localBoolean = Boolean.valueOf(true);
            //localConcurrentHashMap.put(str, localBoolean);
    	}
    		
    	cursor.close();
    	}
    	catch (SQLException localSQLException)
    	{
    		this.a.a(localSQLException);
    	}
    }
  }

@Override
protected Object doInBackground(Object aobj[]) {
	// TODO Auto-generated method stub
	 return this.a;
}
}